8160404: RelocationHolder constructors have bugs #3513
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi all,
I find this backport problematic. Given the points in [1]/[2]/[3] below, we might want to avoid backporting it.
Rationale
The idea of backporting this change is the following:
[1]
The change requires JDK-8299022, which addresses PPC/S390 build issues. Can we include it as a commit in this PR or it should go as a separate change?
[2]
While working on the backport, I encountered a build issue: the AArch64 cross-compiler reports that Address::_ext is used uninitialized in a copy constructor. This can be resolved with a simple fix (see commit_3). However, I find it concerning that:
[3]
The original patch also modifies the post_call_nop_Relocation and entry_guard_Relocation classes, which are part of:
I do not expect these changes to be backported to jdk17u, so I have excluded those parts in this backport:
Progress
Issue
Backport <hash>
with the hash of the original commit. See Backports.Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3513/head:pull/3513
$ git checkout pull/3513
Update a local copy of the PR:
$ git checkout pull/3513
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3513/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3513
View PR using the GUI difftool:
$ git pr show -t 3513
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3513.diff